<html>
<head>
<title>XFer Text</title>
<script type="text/javascript"> 
function CopyDIV(IDS) { 
  document.getElementById('CopiedDIV').value=document.getElementById(IDS).innerHTML; 
} 
</script>
</head>
<body>
	<div id="DIVtext1" style="border: 1px solid blue; width: 200px;"
		onClick="CopyDIV(this.id)">This is a line of text to copy.</div>
	<p />
	Results:
	<input type="text" id="CopiedDIV" value="" size="40">
	<div id="DIVtext2" style="border: 1px solid blue; width: 200px;"
		onClick="CopyDIV(this.id)">This is a different line of text to
		copy.</div>
		
		------------------------------------------------------

	<FORM ENCTYPE="multipart/form-data" ACTION="page2.jsp" METHOD=get>
		<input type="file" name="FILE_NAME" size="35">

		<input type="text" id="copiedDiv" name="file_path" value="" size="100">
		<input type="button" value="aaaaa" onClick="CopyDIV(FILE_NAME)">
		<input type="submit" value="send it" onClick="CopyDIV(file_path)">
	</FORM>
</body>
</html>
